import request from '@/utils/request'

// 查询员工调动列表
export function listUsertransfer(query) {
  return request({
    url: '/system/usertransfer/list',
    method: 'get',
    params: query
  })
}

// 查询员工调动详细
export function getUsertransfer(personnelid) {
  return request({
    url: '/system/usertransfer/' + personnelid,
    method: 'get'
  })
}

// 新增员工调动
export function addUsertransfer(data) {
  return request({
    url: '/system/usertransfer',
    method: 'post',
    data: data
  })
}

// 修改员工调动
export function updateUsertransfer(data) {
  return request({
    url: '/system/usertransfer',
    method: 'put',
    data: data
  })
}

// 删除员工调动
export function delUsertransfer(personnelid) {
  return request({
    url: '/system/usertransfer/' + personnelid,
    method: 'delete'
  })
}
